<?php
include_once("controller/AgendaController.php");
$controller = new AgendaController();
if(isset($_GET['method'])){
	$method = strtolower($_GET['method']);

	switch ($method){
		case 'getagendalist':
			$controller->getAgendaList();
			break;
		case 'getagendabytourcode':
			$tourcode = strval($_GET['id']);
			$controller->getAgendaByTourcode($tourcode);
			break;
//		case 'getagendalistbytourguiderid':
//			$tourguide_id = intval($_GET['id']);
//			$controller->getAgendaListByTourguiderId($tourguide_id);
//			break;
		default:
			break;
	}
}
else{
	echo "Please set method for agenda";
}
?>